API Documentation
ShaderInstanceMemorySlot.h
1 // ShaderInstanceMemorySlot.h
3 //
5 
6 namespace nkGraphics
7 {
13  class DLL_GRAPHICS_EXPORT ShaderInstanceMemorySlot : public ShaderMemorySlot
14  {
15  public :
16 
20  enum class DATA_TYPE
21  {
22  UNKNOWN = 0,
23  WORLD_MATRIX,
24  WORLD_MATRIX_INV_TRANSPOSE,
25  CUSTOM
26  } ;
27 
28  public :
29 
38 
39  // Getters
43  DATA_TYPE getType () const ;
47  virtual unsigned int getDataSize () const ;
51  virtual nkMemory::StringView getTypeAsString () const override ;
52 
53  // Setters
73  void setAsWorldMatrix () ;
101 
107  virtual void exportClassToTree (nkExport::Node* rootNode) override ;
113  virtual void importClassFromTree (nkExport::Node* rootNode) override ;
114  } ;
115 }
nkGraphics::ShaderInstanceMemorySlot::setAsWorldMatrixInvTranspose
void setAsWorldMatrixInvTranspose()
nkGraphics::ShaderMemorySlot
A memory slot in a memory resource.
Definition: ShaderMemorySlot.h:15
nkGraphics::ShaderInstanceMemorySlot::ShaderInstanceMemorySlot
ShaderInstanceMemorySlot()
nkGraphics::ShaderInstanceMemorySlot::getTypeAsString
virtual nkMemory::StringView getTypeAsString() const override
nkGraphics::ShaderInstanceMemorySlot::DATA_TYPE
DATA_TYPE
Definition: ShaderInstanceMemorySlot.h:21
nkGraphics::ShaderInstanceCustomSlot
A custom slot, implementable by external code.
Definition: ShaderInstanceCustomSlot.h:12
nkExport::Node
A node in the tree structure representing the data to export / import.
Definition: Node.h:42
nkGraphics::ShaderInstanceMemorySlot::exportClassToTree
virtual void exportClassToTree(nkExport::Node *rootNode) override
nkMemory::StringView
Class holding information about a string, with no ownership over the data.
Definition: StringView.h:22
nkGraphics::ShaderInstanceMemorySlot::setAsWorldMatrix
void setAsWorldMatrix()
nkGraphics::ShaderInstanceMemorySlot::~ShaderInstanceMemorySlot
virtual ~ShaderInstanceMemorySlot()
nkGraphics::ShaderInstanceMemorySlot::setAsCustom
void setAsCustom(ShaderInstanceCustomSlot *slot)
nkGraphics
Encompasses all API of component NilkinsGraphics.
Definition: BoundingBox.h:7
nkGraphics::ShaderInstanceMemorySlot::getType
DATA_TYPE getType() const
nkGraphics::ShaderInstanceMemorySlot::getDataSize
virtual unsigned int getDataSize() const
nkGraphics::ShaderInstanceMemorySlot::importClassFromTree
virtual void importClassFromTree(nkExport::Node *rootNode) override
nkGraphics::ShaderInstanceMemorySlot
A memory slot for per instance data in a Shader.
Definition: ShaderInstanceMemorySlot.h:14